home *** CD-ROM | disk | FTP | other *** search
/ Software USA 4 #8 / Software USA Volume 4.08.iso / mac / LifeStyles / ComicBase / ComicBase.sea / ComicBase 3 Mac Demo / ComicBase 3 Demo.rsrc / LENS_135_Issue Variations Setup < prev    next >
Text File  |  1998-02-04  |  9KB  |  95 lines

  1. ItemType: WIND
  2. Rect: 312,289,712,479
  3. Style: Dialog
  4. HasTitleBar: TRUE
  5. HasZoomBox: FALSE
  6. Name: Issue Variations Setup
  7. WhiteColor: -8739,-8739,-8739
  8. Script: --on windowEvent  wdID,wdName,objNo,objName,objValue¬Global gIssueVariationsList¬global gWindowPositions¬¬---------------------¬-- This is window #23¬---------------------¬¬if objValue="Open" then ¬  wsSet wdID,"IssueVariationsList","Text", gIssueVariationsList¬  ¬  -- Restore old window position¬  put OldWindowPosition(23) into windowRect¬  if windowRect = empty then centerWindow wdName¬  else wsSet wdID,"0","Rect",windowRect¬  ¬  get "Remove_Disabled:True" & return & "Abbreviation_Disabled:True" & "IssueVariation_Disabled:True" & return¬  wsSet wdID,0,"Properties",it¬  ¬else if objValue="Close" then ¬  -- save the window position¬  put "23" & tab & wdName & tab & wsGet(wdID,"0","Rect") into line 23 of gWindowPositions¬  ¬else if objValue="Suspend" then ¬  ¬else if objValue="Resume" then ¬  ¬else if objValue="CloseBox" then ¬  ¬else if objValue="ZoomBox" then ¬  ¬else if objValue="GrowBox" then ¬  ¬else if objValue="TitleBar" then ¬  ¬end if¬¬--end windowEvent
  9.  
  10. ItemType: PUSH
  11. Rect: 306,125,386,145
  12. AutoSize: FALSE
  13. Name: Save
  14. AutoClose: TRUE
  15. Balloon: Click here to save your changes to the list of issue variations.
  16. Script: --on mouseUp  wdID,wdName,objNo,objName,objValue¬global gIssueVariationsList¬¬put wsGet(wdID,"IssueVariationsList","Text") into gIssueVariationsList¬set the itemDelimiter to tab¬put 1 into tempCnt¬repeat with x = 1 to the number of lines of gIssueVariationsList¬  put line tempCnt of gIssueVariationsList into theLine¬  if item 1 of theLine = empty or item 2 of theLine = empty then delete line tempCnt of gIssueVariationsList¬  else¬    add 1 to tempCnt¬  end if ¬end repeat¬--end mouseUp¬
  17.  
  18. ItemType: PUSH
  19. Rect: 306,154,386,174
  20. Name: Cancel
  21. CancelItem: TRUE
  22. AutoClose: TRUE
  23. Balloon: Click here to exit without saving your changes to the issue variations list.
  24.  
  25. ItemType: LIST
  26. Rect: 10,49,288,179
  27. TextFont: Geneva
  28. Name: IssueVariationsList
  29. Style: ListWithTabs...
  30. StyleInfo: .......................>
  31. Logic: Drag
  32. Text: Autographed    Aut¬Collector’s Set    CS¬Deluxe Edition    Dlx¬Direct Market Special Edition    DM¬Gold Edition    GO¬Limited Edition    LE¬Platinum Edition    PL¬Silver Edition    SI¬Special Cover    SC¬Variation A    A¬Variation B    B¬Variation C    C¬Variation D    D¬Variation E    E¬Variation F    F¬Variation G    G¬Variation H    H¬Variation I    I¬Variation J    J¬Variation K    K¬Variation L    L¬Variation M    M
  33. Balloon: This is the list of all issue variations and their respective abbreviations.
  34. Script: --on mouseUp  wdID,wdName,objNo,objName,objValue¬put wsGet(wdID,"IssueVariationsList","Selection") into IssueVariationLine¬put wsGet(wdID,"IssueVariationsList","Text") into IssueVariationsList¬put line IssueVariationLine of IssueVariationsList into theLine¬¬if theLine <> empty then¬  set the itemDelimiter to tab¬  put item 1 of theLine into theIssueVariationName¬  put item 2 of theLine into theIssueVariationAbbreviation¬  put "IssueVariation_Selection:0,100" into theSelection¬  ¬  get "IssueVariation_Disabled:False" & return & "Abbreviation_Disabled:False" & return & "IssueVariation_Text:" & theIssueVariationName & return & "Abbreviation_Text:" & theIssueVariationAbbreviation & return & theSelection & return & "Remove_Disabled:False" & return¬else¬  get "Remove_Disabled:True" & return & "IssueVariation_Text:" & return & "IssueVariation_Disabled:True" & return & "Abbreviation_Disabled:True" & return & "Abbreviation_Text:" & return & "IssueVariation_Selection:0,0" & return ¬  ¬end if¬wsSet wdID,"0", "Properties", it¬--end mouseUp¬
  35.  
  36. ItemType: TEXT
  37. Rect: 10,24,194,46
  38. TextFont: Geneva
  39. TextSize: 12
  40. Disabled: TRUE
  41. Name: IssueVariation
  42. LockText: FALSE
  43. KeyFilter: bOnly25Chars
  44. Balloon: Enter the description of type of issue variation here. ¬¬Issue variations are the different editions that a single comic issue may appear in. For example, “Gold” or “Collector’s Set” editions may appear in addition to the regular newsstand edition.
  45. Script: --on closeField  wdID,wdName,objNo,objName,objValue¬put wsGet(wdID,"IssueVariation","Text") into theIssueVariation¬put wsGet(wdID,"IssueVariationsList","Selection") into theIssueVariationLine¬put empty into theProps¬if theIssueVariation <> empty then¬  put wsGet(wdID,"IssueVariationsList","Text") into theIssueVariationsList¬  set the itemDelimiter to tab¬  ¬  put line theIssueVariationLine of theIssueVariationsList into theLine¬  if the number of items of theLine > 1 then put item 2 of theLine into item2¬  else put empty into item2¬  ¬  put theIssueVariation & tab & item2 into line theIssueVariationLine of theIssueVariationsList¬  wsSet wdID,"IssueVariationsList","Text",theIssueVariationsList¬  put "Remove_Disabled:False" & return into theProps¬end if¬put "IssueVariationsList_Selection:" & theIssueVariationLine & return & theProps into theProps¬¬wsSet wdID,"0","Properties", theProps¬--end closeField
  46.  
  47. ItemType: TEXT
  48. Rect: 200,24,273,46
  49. TextFont: Geneva
  50. TextSize: 12
  51. Disabled: TRUE
  52. Name: Abbreviation
  53. LockText: FALSE
  54. KeyFilter: bOnly4Chars
  55. Balloon: This is the issue variation’s abbreviation. This is what appears in price lists, although it is converted to the longer form when issue labels are printed.¬¬Only letters may be used for the abbreviation.
  56. Script: --on closeField  wdID,wdName,objNo,objName,objValue¬put wsGet(wdID,"IssueVariationsList","Selection") into theIssueVariationLine¬put wsGet(wdID,"IssueVariationsList","Text") into theIssueVariationsList¬set the itemDelimiter to tab¬put wsGet(wdID,"Abbreviation","Text") into theIssueVariationAbbrev¬put item 2 of line theIssueVariationLine of theIssueVariationsList into oldAbbreviation¬¬if theIssueVariationAbbrev <> empty then¬  put find(GetColumn(theIssueVariationsList,2,2,tab),theIssueVariationAbbrev,"Line","Exact") into whereFound¬  if whereFound = theIssueVariationLine then put find(GetColumn(theIssueVariationsList,2,2,tab),theIssueVariationAbbrev,"Line","Exact",whereFound + 1) into whereFound¬  if whereFound > 0 then¬    beep¬    wsSet wdID,"Abbreviation","Text",oldAbbreviation¬    get windowScript("Stop Alert","That abbreviation is already being used. Please choose another.")¬  else¬    put line theIssueVariationLine of theIssueVariationsList into theLine¬    put (item 1 of theLine) & tab & theIssueVariationAbbrev into line theIssueVariationLine of theIssueVariationsList¬    wsSet wdID,"IssueVariationsList","Text", theIssueVariationsList¬  end if¬else¬  beep¬  wsSet wdID,"Abbreviation","Text",oldAbbreviation¬  get windowScript("Stop Alert","You must enter an abbreviation for this issue variation. (Click “Remove” if you wish to remove this variation entirely).")¬end if¬get "IssueVariationsList_Selection:" & theIssueVariationLine & return & "New_Disabled:False" & return¬wsSet wdID,"0","Properties", it¬--end closeField
  57.  
  58. ItemType: TEXT
  59. Rect: 14,11,100,23
  60. TextFont: Geneva
  61. TextSize: 9
  62. Name: IssueVariationLabel
  63. WhiteColor: -8739,-8739,-8739
  64. TextStyle: Bold
  65. Text: Issue Variation
  66.  
  67. ItemType: TEXT
  68. Rect: 201,11,275,23
  69. TextFont: Geneva
  70. TextSize: 9
  71. Name: AbbrevLabel
  72. WhiteColor: -8739,-8739,-8739
  73. TextStyle: Bold
  74. Text: Abbreviation
  75.  
  76. ItemType: PUSH
  77. Rect: 306,53,386,73
  78. Name: New
  79. Balloon: Click here to add a new issue variation to the list.
  80. Script: --on mouseUp  wdID,wdName,objNo,objName,objValue¬put wsGet(wdID,"IssueVariationsList","Text") into theList¬¬if theList = empty then put tab after theList¬else put return & tab after theList¬¬put the number of lines of theList into newSelection¬¬wsSet wdID,"IssueVariationsList","Text",theList¬get "IssueVariation_Disabled:False" & return & "Abbreviation_Disabled:False" & return & "IssueVariationsList_Selection:" & newSelection & return & "IssueVariation_Text:" & return & "Abbreviation_Text:" & return & "IssueVariation_Selection:0,0" & return¬wsSet wdID,"0", "Properties", it¬--end mouseUp
  81.  
  82. ItemType: PUSH
  83. Rect: 306,82,386,102
  84. Disabled: TRUE
  85. Name: Remove
  86. Balloon: Click here to remove the selected abbreviation from the list.
  87. Script: --on mouseUp  wdID,wdName,objNo,objName,objValue¬put wsGet(wdID,"IssueVariationsList","Selection") into theLine¬put wsGet(wdID,"IssueVariationsList","Text") into theList¬delete line theLine of theList¬¬wsSet wdID,"IssueVariationsList","Text",theList¬¬set the itemDelimiter to tab¬put item 1 of line theLine of theList into theIssueVariation¬put item 2 of line theLine of theList into theAbbreviation¬get "IssueVariationsList_Selection:" & theLine & return & "IssueVariation_Text:" & theIssueVariation & return & "Abbreviation_Text:" & theAbbreviation & return¬¬if line theLine of theList <> empty then¬  put "Remove_Disabled:False" & return & "Abbreviation_Selection:0,100" & return after it¬else¬  put "Remove_Disabled:True" & return  & "IssueVariation_Disabled:True" & return & "Abbreviation_Disabled:True" & return after it¬end if¬¬wsSet wdID,"0", "Properties", it¬¬--end mouseUp
  88.  
  89. ItemType: LINE
  90. Rect: 306,112,385,113
  91. BlackColor: -26215,-26215,-26215
  92.  
  93. ItemType: LINE
  94. Rect: 306,113,385,114
  95. Pen: White